<?php

class base_rpc_result {

    function __construct($response, $app_id) {
        $sign = $response['sign'];
        unset($response['sign']);
        $this->response = $response;
    }

    function set_callback_params($params) {
        $this->callback_params = $params;
    }

    function get_callback_params() {
        return $this->callback_params;
    }

    function get_pid() {
        return $this->response['msg_id'];
    }

    function get_status() {
        return $this->response['rsp'];
    }

    function get_data() {
        return json_decode($this->response['data'], 1);
    }

    function get_result() {
        return $this->response['res'];
    }
}
